
function Ctrl($scope){ 
			$scope.account_format = /^[a-zA-Z0-9]*$/;
			$scope.newverifycode = function(){ 
				$scope._time = (new Date()).getTime().toString();
			};
			
			
		 
		};
angular.element(document).ready(function () {
       angular.bootstrap(document);        
		
		
		//添加select的函数
	function addselect(id){
		var array1 = new Array("00002012070316122304_929047621",
								"00002012070316122304_929047622",
								"00002012070316122304_929047623",
								"00002012070316122304_929047624",
								"00002012070316122304_929047625",
								"00002012070316122304_929047626",
								"00002012070316122304_929047627",
								"00002012070316122304_929047628",
								"00002012070316122304_929047629");
		var array2 = new Array("我就读的第一所学校名称？",
								"我最喜欢的休闲运动是什么？",
								"我最喜欢的物品的名称？",
								"我最喜欢的物品的名称？",
								"我最喜欢的歌曲？",
								"我最喜欢的食物？",
								"我最爱的人的名字？",
								"我最爱的电影？",
								"我妈妈的生日？");
	  var oSelect = document.getElementById(id);
	  oSelect.options.length = 0;//每次先清空select旧的选项
	  for(var i=0; i < array1.length; i++)
	  {
		var option=new Option(array2[i],array1[i]);
		oSelect.options.add(option);
	  }
	}
		
	if(document.getElementById("questionCode1")){
		addselect("questionCode1");
		}
      if(document.getElementById("safeques1")&&document.getElementById("safeques2")&&document.getElementById("safeques3")){
		addselect("safeques1");
       	addselect("safeques2");
       	addselect("safeques3");
	  }
})